package cn.flying.cloud.core.event;

import java.time.LocalDateTime;

import org.springframework.context.ApplicationEvent;

/**
 * 访问日志事件
 *
 * @author: admin
 * @date: 2024年07月16日 17:12
 * @version: 1.0
 */
public class RequestLogEvent extends ApplicationEvent {

    private String tenantId;
    private String userId;
    private String username;
    private String ip;
    private String uri;
    private String type;
    private LocalDateTime startTime;
    private LocalDateTime endTime;

    public RequestLogEvent(Object source) {
        super(source);
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
}
